<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="layout/template.xhtml">

	<ui:define name="body">
		<h:form>
		
			<h:outputText value="#{personBean.username}" />
			
			<p:dataTable value="#{personBean.people}" var="ppl">

				<p:column sortBy="#{ppl.firstname}">
					<f:facet name="header">
						<h:outputText value="First name" />
					</f:facet>
					<h:outputText value="#{ppl.firstname}" />
				</p:column>

				<p:column sortBy="#{ppl.lastname}">
					<f:facet name="header">
						<h:outputText value="Last name" />
					</f:facet>
					<h:outputText value="#{ppl.lastname}" />
				</p:column>

			</p:dataTable>
			
		</h:form>
	</ui:define>

</ui:composition>
